//
//  BMRequest.m
//  砼车Demo
//
//  Created by apple on 16/1/7.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "BMRequest.h"

@implementation BMRequest

+(instancetype)requestWithPath:(NSString *)path{
    
    
    NSAssert1(path !=nil, @"%@不能为空", @"path");
    
    BMRequest *request = [BMRequest new];
    request.path = path;
    return  request;
    
}
+(instancetype)requestWithPath:(NSString *)path contentKey:(NSString *)key{
    
    NSAssert1(key != nil, @"%@不能为空", @"contentKey");
    
    BMRequest *request = [BMRequest requestWithPath:path];
    [request setValue:key forKeyPath:@"contentKey"];
    return request;
    
}

@end
